<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>{$goods.goods_name} {$goods.page_title} {$site_info.site_name|default=''}</title>
<meta name="keywords" content="{$goods.page_keywords|default=''}" />
<meta name="description" content="{$goods.page_excerpt|default=''}">
<include file="public@head"/>
</head>
<style type="text/css">
.content img{max-width: 920px;}
.text img{max-height: 60px;}
</style>
<body>
    <include file='public@nav'/>
    <include file="public@banner"/>
    <php>
        /*顶级分类ID*/
        $top_category_id = get_cat_parent_path($cid,true,'goods_category');

        

        /*顶级分类的子分类*/

        $categorys = cmf_get_goods_child_terms($top_category_id[0]);

        /*父级分类信息*/
        $new_category = model('goods_category')
                     -> where('id', $top_category_id[0])
                     -> order('list_order asc,id desc')
                     -> find();
        
        $category2['name']    = $new_category['name'];
        $category2['subname'] = $new_category['subname'];

        
    </php>
    <div class="main layout clearfix">
        <div class="oleft fl">
            <div class="title">
                <h4>{$category2.name|default=''}</h4>
                <span>{$category2.subname|default=''}</span>
            </div>
            <div class="lmenu">
                <ul>
                    <volist name='categorys' id='vo'>
                    <li <eq name="cid" value="$vo.id">class="on"</eq>>
                        <a href="{:cmf_url('goods/List/index',array('id'=>$vo['id']))}">{$vo.name}</a>
                    </li>
                    </volist>
                    
                </ul>
            </div>

            <php>
                $banner = \app\admin\service\ApiService::slides(30,1);

                $banner_c = \app\admin\service\ApiService::slides(31,1);
               
            </php>

            <volist name='banner' id='vo'>
            <div class="newsc" style="background: url({:cmf_get_image_url($vo['image'])}) no-repeat;">
            <a href="{$vo.url}">
                <h4>新闻动态</h4>
                <span>News</span>
            </a>
            </div>
            </volist>
            <volist name='banner_c' id='vo'>
            <div class="newsz" style="background: url({:cmf_get_image_url($vo['image'])}) no-repeat;">
            <a href="{$vo.url}">
                <h4>联系我们</h4>
                <span>Contact us</span>
            </a>
            </div>
            </volist>
        </div>
        <div class="oright fr">
            <div class="title clearfix">
                <div class="tav fl">{$category.name|default=''}</div>
                <div class="clumb clearfix fr">
                    当前位置：
                    <a href="/">首页</a>
                    <i>></i>
                    
                    <php>
                      
                        $cat_id = empty($cat_id) ? input('cid',0,'intval') : $cat_id ;
                        $breadcrumb = cmf_get_goods_breadcrumb($cat_id);
                        
                    </php>

                    <volist name='breadcrumb' id='vo'>
                        
                            <a href="{:url('goods/List/index',['id'=>$vo['id']])}">{$vo.name}</a>
                        <i>></i>
                    </volist>
                 
                    <span>{$category.name|default=''}</span>
                </div>
            </div>

            <div class="content">
                <div class="promain">
                    <div class="heat">
                        
                        <div class="pic fl">
                            <img src="{:cmf_get_image_url($goods.more.thumbnail)}" style="width:370px;">
                        </div>
                        <div class="txt fl">
                            <h1>{$goods.goods_name}</h1>
                            <h4>{$goods.subtitle}</h4>
                            <div class="text">
                                 {$goods.post_excerpt}
                            </div>
                            <!-- <ul class="xtx clearfix">
                                <li>
                                    <img src="images/pro02.png">
                                </li>
                                <li>
                                    <img src="images/pro03.png">
                                </li>
                                <li>
                                    <img src="images/pro04.png">
                                </li>
                                <li>
                                    <img src="images/pro05.png">
                                </li>
                                <li>
                                    <img src="images/pro06.png">
                                </li>
                            </ul> -->
                        </div>
                        <!-- <div class="txt fl">
                            <h1>{$goods.goods_name}</h1>
                            <div>
                                {$goods.post_excerpt}
                            </div>
                            
                        </div> -->
                    </div>
                    <div class="yslist">
                        <div class="title">
                            <span>优势特点</span>
                        </div>
                        {$goods.post_trait|htmlspecialchars_decode}
                    </div>
                    <div class="tu">
                        <div class="title">
                            <span>门禁架构图</span>
                        </div>
                        <div class="pic">
                            {$goods.post_jiagou|htmlspecialchars_decode}
                        </div>
                    </div>
                    <div class="canshu">
                        <div class="title">
                            <span>参数</span>
                        </div>
                        
                        {$goods.post_para|htmlspecialchars_decode}
                       
                    </div>
                </div>
            </div>
        </div>
    </div>
    
    <include file='public@footer'/>
</body>
</html>

<include file='public@scripts'/>

<script type="text/javascript" src="__TMPL__/public/assets/js/lightbox.js"></script>
<script type="text/javascript">
    $('.canshu dl dd:last').css({'border-bottom':'none'})
</script>
